import Ax from './api';

export default {
  deviceTypeAdd: (param = {}) => Ax.put(`/deviceType/add`, {...param}),
  deviceTypeEdit: (param = {}) => Ax.put(`/deviceType/edit`, param),
  deviceTypeDelete: (query = {}) => Ax.delete(`/deviceType/delete?_id=${query._id}`),
  deviceTypeList: (param = {}) => Ax.post(`/deviceType/list`, param),
  deviceTypeAll: (query = {}) => Ax.get(`/deviceType/all`),
  deviceTypeDetail: (query = {}) => Ax.get(`/deviceType/detail?_id=${query._id}`),
};
